# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pydot
_pkgname=pydot
pkgver=1.4.1
pkgrel=3
pkgdesc="Python interface to Graphviz's Dot."
url='https://pypi.org/project/pydot/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-pyparsing' 'graphviz')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('aae2d9d558cb8d70710324771a6c4b15df3dcb366fc8b2046f763a7feabb4369400a8062d24ebbea4dc40c7bbc5f398bf462fb237ea45ee840af0c3d0eb79c4a')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

